import './assets/style.css'
import './assets/a.less'
import Data from './assets/data.csv'
import Notes from './assets/data.xml'
import toml from './assets/data.toml'
import json5 from './assets/data.json5'
import yaml from './assets/data.yaml'

import './assets/a.less'

document.body.classList.add('hello')
const block = document.createElement('div')
block.style.cssText = 'width:300px;height:300px;background:aliceblue'
block.textContent = '男人的错'
block.classList.add('block-bg')
document.body.appendChild(block)

addFont('&#xe619;')
addFont('&#xe61a;')
addFont('&#xe61b;')
addFont('&#xe61c;')
addFont('&#xe61d;')
addFont('&#xe61e;')
function addFont(code) {
    const span = document.createElement('span')
    span.classList.add('icon')
    span.innerHTML = code
    document.body.appendChild(span)
}

//csv 转换为 数组
console.log(Data);

//xml 转换为 对象
console.log(Notes);

//toml 转换为 对象
console.log(toml);

//yaml 转换为 对象
console.log(yaml);

//json5 转换为 对象
console.log(json5);